import request from '@/utils/request'

// 获取补贴单子奖励列表
export function subsidyChildrenFOIndexList(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminUserRewardTransProvider/1.0.0/listUserRewardTrans.html',
        method: 'post',
        data: query
    })
}
// 补贴单子奖励（导出）
export function rewardExport(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminUserRewardTransProvider/1.0.0/rewardExport.html',
        method: 'post',
        data: query,
        responseType: "blob"
    })
}
// 获取客服业绩列表
export function customerServicesFOIndexList(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminSellAchievementProvider/1.0.0/sellAdminAchievementList.html',
        method: 'post',
        data: query
    })
}

// 获取招商业绩列表
export function merchantsFOIndexList(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminServersRewardTransProvider/1.0.0/serversRewardTransList.html',
        method: 'post',
        data: query
    })
}

// 获取招商业绩列表（导出）
export function merchantsFOExport(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminServersRewardTransProvider/1.0.0/export.html',
        method: 'post',
        data: query,
        responseType: "blob"
    })
}

// 获取拉新奖励卡列表
export function pullNewFOIndexList(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminServersReferralCardsProvider/1.0.0/serversReferralCardsList.html',
        method: 'post',
        data: query
    })
}

// 获取分公司列表
export function filialeFOIndexList(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminBranchOfficeProvider/1.0.0/branchOfficeList.html',
        method: 'post',
        data: query
    })
}

// 删除分公司列表
export function filialeFOIndexListDelete(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminBranchOfficeProvider/1.0.0/deleteBranchOffice.html',
        method: 'post',
        data: query
    })
}
// 新增分公司列表
export function filialeFOIndexListAdd(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminBranchOfficeProvider/1.0.0/createBranchOffice.html',
        method: 'post',
        data: query
    })
}
// // 编辑分公司
// export function filialeFOIndexListEdit(query) {
//     return request({
//         url: 'com.mmk.reservation.api.AdminBranchOfficeProvider/1.0.0/updateBranchOfficeAgent.html',
//         method: 'post',
//         data: query
//     })
// }
// 编辑分公司列表
export function filialeFOIndexListEdit(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminBranchOfficeProvider/1.0.0/updateBranchOfficeAgent.html',
        method: 'post',
        data: query
    })
}
// 获取分公司详情
export function filialeFOIndexListDetails(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminBranchOfficeProvider/1.0.0/detailBranchOffice.html',
        method: 'post',
        data: query
    })
}
// 获取代理人地区
export function getAddress(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminBranchOfficeProvider/1.0.0/listOfficeAgentAreas.html',
        method: 'post',
        data: query
    })
}
//导出招商业绩
export function exportOfficeAchieve(query) {
    return request({
        url: 'com.mmk.member.api.AdminBranchOfficeAgentProvider/1.0.0/exportOfficeAchieve.html',
        method: 'post',
        data: query,
        responseType: "blob"
    })
}
//导出医院业绩
export function exportHospitalAchieveList(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminProxyAchieveProvider/1.0.0/exportHospitalAchieveList.html',
        method: 'post',
        data: query,
        responseType: "blob"
    })
}
//平台手续费导出
export function handlingExport(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminPlatformFeeProvider/1.0.0/export.html',
        method: 'post',
        data: query,
        responseType: "blob"
    })
}
//平台手续费页面
export function handlingfeeGetNew(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminPlatformFeeProvider/1.0.0/list.html',
        method: 'post',
        data: query
    })
}
//奖励明细列表
export function getList(query) {
    return request({
        url: 'com.mmk.member.api.AdminUsersRewardTransProvider/1.0.0/lifeList.html',
        method: 'post',
        data: query
    })
}
//奖励明细导出
export function excelExport(query) {
    return request({
        url: 'com.mmk.member.api.AdminUsersRewardTransProvider/1.0.0/lifeExport.html',
        method: 'post',
        data: query,
        responseType: "blob"
    })
}
